﻿namespace Jiubang.Authentications{
    /// <summary>
    /// 访问权限验证类
    /// </summary>
    public interface IPermission{
        /// <summary>
        /// 请求动作执行权限
        /// </summary>
        /// <param name="session">用户会话</param>
        /// <param name="path">请求路径</param>
        /// <param name="access">动作名称</param>
        /// <returns>允许时返回True</returns>
        bool Ask(UserSession session, string path, string access);
    }
}